var that
export default {
    data () {
        return this.datainit({
            group: null,
            user: null
        })
    },

    mounted: function () {
        that = this
        this.check()
    },
    methods: {
        user_init: function (_user) {
            that.user = _user
            if(!that.user.isgroup){
                that.$router.push({path:"/pages/group/join"})
                return;
            }
            that.$post("api/group/user_get", null, function (data) {
                that.group = data
            })
        }
    }
}